#列表判断其中是否有重复元素
list=[23,48,25,78,92,71,1,4]
new_list=[]
for i in list:
    if i not in new_list:
        new_list.append(i)
        if len (list)==len(new_list):
            print("没有重复元素")
        else:
            print("有重复元素")